﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyInvoice.WPF.Common
{
    [Flags]
    public enum UserRights
    {
        [DescriptionAttribute("None")]
        None = 0,
        [DescriptionAttribute("View Invoices")]
        ViewInvoices = 1,
        [DescriptionAttribute("Add Invoices")]
        AddInvoices = 2,
        [DescriptionAttribute("Edit Invoices")]
        EditInvoices = 4,
        [DescriptionAttribute("Delete Invoices")]
        DeleteInvoices = 8,
        [DescriptionAttribute("Print Invoices")]
        PrintInvoices = 16,
        [DescriptionAttribute("View Clients")]
        ViewClients = 32,
        [DescriptionAttribute("Add Clients")]
        AddClients = 64,
        [DescriptionAttribute("Edit Clients")]
        EditClients = 128,
        [DescriptionAttribute("Delete Clients")]
        DeleteClients = 256,
        [DescriptionAttribute("Edit Apearance")]
        EditApearance = 512,
        [DescriptionAttribute("View Settings")]
        ViewSettings = 1024,
        [DescriptionAttribute("Edit Database")]
        EditDatabase = 2048,
        [DescriptionAttribute("Edit Export")]
        EditExport = 4096,
        [DescriptionAttribute("Edit Email")]
        EditEmail = 8192,
        [DescriptionAttribute("Edit Options")]
        EditOptions = 16384,
        [DescriptionAttribute("Edit Users")]
        EditUsers = 32768,
        [DescriptionAttribute("Delete Users")]
        DeleteUsers = 65536,
        [DescriptionAttribute("Add Users")]
        AddUsers = 131072,
        [DescriptionAttribute("View Users")]
        ViewUsers = 262144,
        [DescriptionAttribute("Prevent Edit or Delete")]
        PreventEditDelete =524288,
    }
}
